#pragma once
#include "controller.h"
#include "AIEntityControlStub.h"
#include "AIControlLogic.h"

class AIControlLogic;

class AIController :
	public Controller
{
	AIControlLogic *controlLogic;


	virtual int builAITree(AIEntityControlStub * entity,int depth);

public:

	virtual bool apply(
		EntityControl* entity,
		const ControlContext& context);

	virtual bool isSpawningNeeded();
	virtual Projectile getNextSpawnItem();

	
	AIController(AIControlLogic *logic);
	~AIController(void);
};

